package com.scut.campus.entity;


import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.scut.campus.common.enums.PostStatusEnum;
import com.scut.campus.entity.base.BaseDO;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("post")
public class Post extends BaseDO {
    /**
     * 帖子id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String postId;

    /**
     * 帖子标题
     */
    private String title;

    /**
     * 帖子内容
     */
    private String content;

    /**
     * 发帖人id
     */
    private String userId;

    /**
     * 帖子类型id
     */
    private String typeId;

    /**
     * 帖子点赞数
     */
    private Integer likeNum;

    /**
     * 帖子浏览数
     */
    private Integer visitNum;

    /**
     * 帖子收藏数
     */
    private Integer subNum;

    /**
     * 帖子图片
     */
    private String pic1;
    private String pic2;
    private String pic3;

    /**
     * 帖子评论数
     */
    private Integer commentNum;

    /**
     * 帖子状态
     */
    @EnumValue
    private PostStatusEnum status;
}
